package com.example.photo_sharing.tool;

import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;

import java.io.File;
import java.io.FileNotFoundException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;

import okhttp3.MultipartBody;

public interface photoTool {

    //上传头像
    String uploadAvatar(Uri pictures, Context context);

    //Uri转化为Bitmap
    Bitmap getBitmapFromUri(Uri uri)throws FileNotFoundException;

    //上传组图
    String uploadPhotos(List<File> files);

    //uri转为file
    File uriToFileApiQ(Uri uri, Context context);

    //url转file
    File getFile(String url) throws Exception;
}
